multiply structs c#

76

multiply structs c# -

//Example struct
struct Example{
  	//You can use any binary operator(+, -, *, /) after operator
	public static Example operator*(Example left, Example right){
    	return new Example();
    }
}

Comments

Submit
0 Comments